package com.zzptc.sky.baidudemo.vo;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.DaoException;
import com.zzptc.sky.baidudemo.db.DaoSession;
import com.zzptc.sky.baidudemo.db.BaiBoxInfoDao;

/**
 * Created by Administrator on 2017/5/23.
 */
@Entity(
        active = true,
        nameInDb = "BaiBox_info",
        createInDb = true,
        generateConstructors = true
)
public class BaiBoxInfo {
    @Id(autoincrement = true)
    private Long id;
    @Property
    @NotNull
    private String name;
    @Property
    @NotNull
    private String icon;
/**
 * Convenient call for {@link org.greenrobot.greendao.AbstractDao#refresh(Object)}.
 * Entity must attached to an entity context.
 */
@Generated(hash = 1942392019)
public void refresh() {
        if (myDao == null) {
                throw new DaoException("Entity is detached from DAO context");
        }
        myDao.refresh(this);
}
/**
 * Convenient call for {@link org.greenrobot.greendao.AbstractDao#update(Object)}.
 * Entity must attached to an entity context.
 */
@Generated(hash = 713229351)
public void update() {
        if (myDao == null) {
                throw new DaoException("Entity is detached from DAO context");
        }
        myDao.update(this);
}
/**
 * Convenient call for {@link org.greenrobot.greendao.AbstractDao#delete(Object)}.
 * Entity must attached to an entity context.
 */
@Generated(hash = 128553479)
public void delete() {
        if (myDao == null) {
                throw new DaoException("Entity is detached from DAO context");
        }
        myDao.delete(this);
}
/** called by internal mechanisms, do not call yourself. */
@Generated(hash = 1701416932)
public void __setDaoSession(DaoSession daoSession) {
        this.daoSession = daoSession;
        myDao = daoSession != null ? daoSession.getBaiBoxInfoDao() : null;
}
/** Used for active entity operations. */
@Generated(hash = 489746758)
private transient BaiBoxInfoDao myDao;
/** Used to resolve relations */
@Generated(hash = 2040040024)
private transient DaoSession daoSession;
public String getIcon() {
        return this.icon;
}
public void setIcon(String icon) {
        this.icon = icon;
}
public String getName() {
        return this.name;
}
public void setName(String name) {
        this.name = name;
}
public Long getId() {
        return this.id;
}
public void setId(Long id) {
        this.id = id;
}
@Generated(hash = 115660707)
public BaiBoxInfo(Long id, @NotNull String name, @NotNull String icon) {
        this.id = id;
        this.name = name;
        this.icon = icon;
}
@Generated(hash = 343712783)
public BaiBoxInfo() {
}
}
